// 小程序 	onShow (first page) - onLaunch (app)
export interface PerformanceFilds{
  FPT: number
  TTI: number
  Ready: number
  Load: number
  FirstByte: number
  DNS: number
  TCP: number
  TTFB: number
  Trans: number
  DOM: number
  Res: number
  SSL?: number
}

export interface ReportLogInfo {
  method:'GET'| 'POST'
  url:string
  data?:Record<string, any>
  params?: Record<string, string>
  timeout?:number
  onError: (e: Error) => void
  onSuccess: (response: XMLHttpRequestResponseType) => unknown
}

export interface ReportAjaxError extends Error {
  status: number
  method: string
  url: string
}
